package org.example.stockdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class StockIndex {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String code;

    private String name;
    //当前价格
    private Double price;
    //昨收价
    private Double yesterdayPrice;
    //今开价
    private Double startPrice;
    //涨跌额
    private Double changeValue;
    //涨跌幅(%)
    private Double changePercent;
    //成交量(手)
    private Double volume;
    //成交额(万元)
    private Double amount;
    //日期
    private LocalDate createdAt;
    // 当前时间
    private LocalDateTime currentTime;
}